import request from "@/utils/request";

// 商品列表
const getGoodsList =(data)=>request("/goods/getlist","GET",data)
// 商品详情
const getGoodsInfo=(data)=>request("/goods/detail","GET",data)
// 评论列表
const getCommList=(data)=>request("/goods/getcommentlist","GET",data)
// 确认订单
const order_show=(data)=>request("/goods_order/order_show","POST",data)
// 下订单
const create_order=(data)=>request("/goods_order/create_order","POST",data)
// 商城订单
const good_orderlist=(data)=>request("/goods_order/orderlist","GET",data)
// 订单详情
const orderdetail=(data)=>request("/goods_order/orderdetail","GET",data)
export {
    getGoodsList,
    getGoodsInfo,
    getCommList,
	order_show,
	create_order,
	good_orderlist,
	orderdetail
}